package com.sneaker.shower.mapstruct;

import com.sneaker.shower.entity.domain.organization.OrganizationDO;
import com.sneaker.shower.entity.dto.OrganizationDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

@Component
@Mapper(componentModel = "spring")
public interface OrganizationMapStruct {
    OrganizationMapStruct INSTANCE = Mappers.getMapper(OrganizationMapStruct.class);

    OrganizationDTO do2DTO(OrganizationDO organizationDO);

    OrganizationDO toDo(OrganizationDTO organization);
}
